export default function (state = { articles: [] }, action) {
  switch (action.type) {
    case "loadArticlesSuccess":
      return {
        articles: action.payload,
      }
    default:
      return state
  }
}
